package com.mall.admin.model.vo;

import com.mall.admin.model.entity.Product;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class ProductItemVo {

    private String imageUrl;
    private String name;
    private Double price;
    private String productNum;

    public ProductItemVo(Product product, String productNum) {
        this.imageUrl = product.getImageUrl();
        this.name = product.getName();
        this.price = product.getPrice();
        this.productNum = productNum;

    }

}
